package licode;

public class R01 {
    public int[] twoSum(int[] nums, int target) {
        int[] ints = new int[2];
        for(int i=0;i<nums.length;i++){
            for (int j=i+1;j<nums.length;j++){
                if (nums[i]+nums[j]==target){
                    ints[0]=i;
                    ints[1]=j;
                }
            }
        }
        return ints;

    }
}
